/*
 * Open LiveReplay Server - Live replay server for Supreme Commander
 * 
 * Copyright (C) 2009, 2009 Open LiveReplay Server Project
 * 
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 * 
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details:
 * http://www.gnu.org/copyleft/lesser.html#TOC3
 */
package net.galacticwar.replayserver;

/**
 * 
 * JMX MBean declaration for the LiverReplay Server management
 * 
 * @author Yoann Meste (aka Mancer)
 *
 */

public interface ServerManagerMBean {
	public void closeServer(boolean forced);

	public String[] getReplays();
	
	public String[] getReplayListeners(String replayName);
	
	public String loadReplay(String fileName);
	
	public String closeReplay(String fileName, boolean forced);
	
	public String getReplayDetails(String replayName);
	
	public boolean isReplayFilterActive();
	
	public void setReplayFilterActive(boolean active);
	
	public String registerPlayer(String playerName);
	
	public String unregisterPlayer(String playerName);
	
	public String[] getRegisteredPlayers();
}
